package com.example.demo.pdfbox.common.enums;

public enum BorderStyle {
	/**
	 * 实线
	 */
	SOLID(new float[]{}, 0),
	/**
	 * 虚线 线宽1，间隔1，初始偏移1
	 */
	DOTTED(new float[]{1}, 1),
	/**
	 * 虚线 线宽5，间隔2，初始偏移1
	 */
	DASHED(new float[]{5,2}, 1);

	private final float[] pattern;
	private final int phase;

	BorderStyle(float[] pattern, int phase) {
		this.pattern = pattern;
		this.phase = phase;
	}

	public float[] getPattern() {
		return pattern;
	}

	public int getPhase() {
		return phase;
	}
}
